<template>
  <div class="app-container">
    <info-page-container>
      <template slot="body" v-if="inspectInfo">
        <div class="info-page-txt-root">
          <div class="info-header-container">
            <txt-header :title="inspectInfo.inspectName"></txt-header>
          </div>
          <div class="info-body-container">
            <info-table :table-config="infoConfig" :data="inspectInfo"></info-table>
          </div>
        </div>
      </template>
    </info-page-container>
  </div>
</template>

<script>
import {inspectMixins} from "@/views/securityCheck/mixins/inspectMixins";
import TxtHeader from "@/views/components/TxtHeader/index.vue";
import infoTable from "@/views/components/InfoTable/index.vue";

export default {
  mixins: [inspectMixins],
  name: "ztDefectInspect_info",
  components: {
    TxtHeader,
    infoTable
  },
  data() {
    return {
      infoConfig: [
        {
          label: '检查年份',
          value: 'inspectYear'
        },
        {
          label: '检查层级',
          value: 'inspectLevelName'
        },
        {
          label: '牵头部门',
          value: 'leadDepartment'
        },
        {
          label: '检查内容',
          value: 'inspectContent'
        },
        {
          label: '计划完成时间',
          value: 'planCompleteTime'
        },
        {
          label: '检查批次',
          value: 'inspectBatch'
        },
        {
          label: '检查目标',
          value: 'orgList',
          type: 'tag',
          tagConfig: {
            prop: {
              label: 'orgName',
              value: 'orgType'
            },
            escapeConfig: [
              {
                type: '',
                value: '1'
              },
              {
                type: 'success',
                value: '2'
              },
            ]
          }
        },
        {
          label: '文件列表',
          value: 'fileVoList',
          type: 'file'
        },
      ]
    }
  }
}
</script>

<style scoped>

</style>
